<template>
  <div>
    <NavType />
    <List />
    <Recommend/>
    <Rank/>
    <Like/>
    <Floor v-for="floor in floorList" :key="floor.id" :floor = "floor"/>
    <Brand/>
  </div>
</template>

<script>
import Brand from "./Brand";
import List from "./List";
import Recommend from "./Rank";
import Rank from "./Recommend";
import Like from "./Like";
import Floor from "./Floor";
import {getFloorListRequest} from '@/api'
export default {
  name: "Home",
  data(){
    return {
      floorList:[]
    }
  },
  components: {
    List,
    Recommend,
    Rank,
    Like,
    Floor,
    Brand,
  },
  mounted() {
    this.getFloorList()
  },
  methods: {
    async getFloorList(){
      const re = await getFloorListRequest()
      // console.log(re,'re');
      this.floorList = re
    }
  },
};
</script>

<style lang="less" scoped>

</style>